package com.sudo.service.admin.service;

import com.sudo.common.utils.PagedGridResult;
import com.sudo.dao.admin.entity.SysDict;
import com.sudo.dao.admin.model.bo.SysDictBO;

import java.util.List;

/**
 * @author 为道日损 2020-06-23 16:48
 * webSite：https://www.sudo.ren
 */
public interface SysDictService {

    int addDict(SysDictBO sysDictBO, String sessionUser);

    SysDict getSysDictByCode(String dictCode);

    PagedGridResult getParentDictByPage(int page , int pageSize);

    List<SysDict> getChildDictByPCode(String pCode);

    int updateDictByDictCode(SysDictBO sysDictBO,String sessionUser);

    int deleteDictByCode(String dictCode);
}
